package com.example.aspectj

import android.Manifest
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.example.aspectj.trace.ExecuteDuringTimeTrace
import com.example.aspectj.trace.NoDoubleClickTrace
import com.example.aspectj.trace.PermissionTrace
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity(), View.OnClickListener {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        tv.setOnClickListener(this)
    }

    //    @NoDoubleClickTrace
    @PermissionTrace(permission = [Manifest.permission.READ_EXTERNAL_STORAGE])
//    @ExecuteDuringTimeTrace
    override fun onClick(v: View?) {
//        println(Test.testj())
//        println(Test.testPermission())
    }
}
